<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/Ok3w_Article.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/Ok3w_Article.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ok3w_article_id',
                footer: "Foots",
                cnName: '上传档案表',
                name: 'jrtable/Ok3w_Article',
                url: "/Ok3w_Article/",
                sortName: "Title"
            });
            const editFormFields = ref({"ClassID":[],"Title":"","AttachmentURL":"","Content":""});
            const editFormOptions = ref([[{"dataKey":"下载分类","data":[],"title":"分类","required":true,"field":"ClassID","type":"cascader"}],
                              [{"title":"标题","required":true,"field":"Title"}],
                              [{"title":"文件","field":"AttachmentURL","type":"file"}],
                              [{"title":"详细内容","field":"Content","colSize":12,"type":"editor"}]]);
            const searchFormFields = ref({"Title":"","Content":""});
            const searchFormOptions = ref([[{"title":"标题","field":"Title","type":"like"},{"title":"详细内容","field":"Content","type":"like"}]]);
            const columns = ref([{field:'ok3w_article_id',title:'上传文章主键id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'ClassID',title:'分类',type:'int',bind:{ key:'下载分类',data:[]},width:110,require:true,align:'left',sort:true},
                       {field:'SortPath',title:'目录短路径',type:'string',width:110,hidden:true,align:'left'},
                       {field:'Title',title:'标题',type:'string',link:true,width:110,require:true,align:'left'},
                       {field:'TitleColor',title:'文章颜色',type:'string',width:110,hidden:true,align:'left'},
                       {field:'TitleURL',title:'文章路径',type:'string',width:110,hidden:true,align:'left'},
                       {field:'AttachmentURL',title:'文件',type:'file',width:110,align:'left'},
                       {field:'Content',title:'详细内容',type:'string',width:110,hidden:true,align:'left'},
                       {field:'Author',title:'上传人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'ComeFrom',title:'上传来自于',type:'string',width:120,hidden:true,align:'left'},
                       {field:'AddTime',title:'上传时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'Inputer',title:'插入人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'IsPic',title:'图片列表',type:'int',width:110,hidden:true,align:'left'},
                       {field:'PicFile',title:'文档图片',type:'string',width:220,hidden:true,align:'left'},
                       {field:'IsPass',title:'是否审核',type:'int',width:110,hidden:true,align:'left'},
                       {field:'IsTop',title:'是否置顶',type:'int',width:110,hidden:true,align:'left'},
                       {field:'IsDelete',title:'是否删除',type:'int',width:110,hidden:true,align:'left'},
                       {field:'IsCommend',title:'是否推荐',type:'int',width:110,hidden:true,align:'left'},
                       {field:'IsMove',title:'是否滚动',type:'int',width:110,hidden:true,align:'left'},
                       {field:'IsPlay',title:'是否轮播',type:'int',width:110,hidden:true,align:'left'},
                       {field:'IsUserAdd',title:'上传人',type:'int',width:110,hidden:true,align:'left'},
                       {field:'GiveJifen',title:'作者积分',type:'int',width:110,hidden:true,align:'left'},
                       {field:'vUserGroupID',title:'游客权限',type:'int',width:110,hidden:true,align:'left'},
                       {field:'vUserMore',title:'游客登记',type:'int',width:110,hidden:true,align:'left'},
                       {field:'vUserJifen',title:'游客积分',type:'int',width:110,hidden:true,align:'left'},
                       {field:'Hits',title:'查看数',type:'int',width:110,hidden:true,align:'left'},
                       {field:'ChannelID',title:'栏目编号 1：软件管理栏，2：相关说明栏',type:'int',width:80,align:'left',hidden:true},
                       {field:'CreateID',title:'创建人id',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:130,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'ModifyID',title:'修改人id',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:130,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
